package com.eascs.admin.o2o.loan.dao;

import org.springframework.stereotype.Repository;

import com.eascs.admin.common.dao.BaseO2oDao;
import com.eascs.admin.o2o.loan.entity.O2oSDEntity;
import com.eascs.workflow.form.SDEntity;

/**
 * 
 *SD dao层
 *
 */
@Repository
public class O2oSdDao extends BaseO2oDao {
	/**
	 * 根据主表ID查询  O2oSDEntity
	 * @param loanapplyNo
	 * @return
	 */
	public O2oSDEntity getById(String loanapplyNo){
		String sql="select * from o2o_sd o where o.loanapply_no=?";
		return this.findEntity(sql, O2oSDEntity.class, loanapplyNo);
	}
	/**
	 * 修改 SD数据
	 * @return
	 */
	public int updateSDEntity(SDEntity o2oSDEntity){
		return this.updateById(o2oSDEntity);
	}
}
